<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 数字类型
        const num_1 = 1
        console.log(num_1)

        const num_2 = 3.14
        console.log(num_2)

        console.log(typeof(num_1), typeof(num_2))

        // 字符串
        const str_data = '麦麦真好看'
        console.log(str_data)

        // 布尔类型
        var bool_data = true
        console.log(typeof(bool_data))

        // 未定义类型
        var un_data;
        console.log(typeof(un_data))

        // object类型
        var null_data = null  // None
        console.log(typeof(null_data))

        var dict_data = {
            name:'麦麦',
            age:20,
            my_func:function my_func(){
                console.log('hello world!');
            }
        }
        dict_data.my_func()  // 函数调用
        console.log(typeof(dict_data))
        console.log(typeof(dict_data.name,dict_data.age))


    </script>
</head>
<body>
    
</body>
</html>